# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(dolphin_app)

target_sources(app PRIVATE src/main.c  src/app_shell.c)
file(GLOB_RECURSE app_sources ${ZEPHYR_BASE}/../dolphin_common/*.c)
target_sources(app PRIVATE ${app_sources})


# set(WIT_APP_SOURCES_DIR src/wit_c_sdk)
# # 收集源文件和头文件
# file(GLOB_RECURSE APP_SOURCES "${WIT_APP_SOURCES_DIR}/*.c")
# file(GLOB_RECURSE APP_HEADERS "${WIT_APP_SOURCES_DIR}/*.h")
# # 将源文件和头文件添加到应用程序构建目标
# target_sources(app PRIVATE ${APP_SOURCES})
# target_include_directories(app PRIVATE ${APP_HEADERS})